import request from '@/utils/request'

// 查询工单池列表
export function listWorkOrder(query) {
  return request({
    url: '/system/workOrder/list',
    method: 'get',
    params: query
  })
}

// 查询工单池详细
export function getWorkOrder(workOrderId) {
  return request({
    url: '/system/workOrder/' + workOrderId,
    method: 'get'
  })
}

// 新增工单池
export function addWorkOrder(data) {
  return request({
    url: '/system/workOrder',
    method: 'post',
    data: data
  })
}

// 修改工单池
export function updateWorkOrder(data) {
  return request({
    url: '/system/workOrder',
    method: 'put',
    data: data
  })
}

// 删除工单池
export function delWorkOrder(workOrderId) {
  return request({
    url: '/system/workOrder/' + workOrderId,
    method: 'delete'
  })
}
